# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),

#NOTE: Uncomment these as the Room files are created!  
#      A missing Room file will break our app and show a SERVER 500 error

               # 3rd floor rooms
               build_route('thirdfloorhallway','ThirdFloorHallwayHandler'),
               build_route('lookdown3','LookDown3Handler'),
               build_route('gradlounge','GradLoungeHandler'),
               build_route('library','LibraryHandler'),
               build_route('computerlab','ComputerLabHandler'),
               build_route('locker','LockerHandler'),

               ## 2nd floor rooms
               build_route('secondfloorhallway','SecondFloorHallwayHandler'),
               build_route('teamroom230a','TeamRoom230AHandler'),
               build_route('lookdown2','LookDown2Handler'),
               build_route('starbucks','StarbucksHandler'),

               # end-game rooms
               build_route('victory_room','VictoryRoomHandler'),
               build_route('failure_room','FailureRoomHandler'),

               # default route
               default_route('start', 'StartHandler')
#               default_route('thirdfloorhallway','ThirdFloorHallwayHandler')
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
